﻿<%@ Page Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true" CodeFile="AlumnoCurso.aspx.cs"
    Inherits="Admin_Alumnos_AlumnoCurso" Title="Untitled Page" %>

<%@ Register Src="../../Controles/CboGeneric.ascx" TagName="CboGeneric" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageContainer" runat="Server">
    <asp:UpdatePanel id="UpdatePanel1" runat="server">
        <contenttemplate>
</contenttemplate>
    </asp:UpdatePanel>
    <table style="width: 558px; height: 100%" cellspacing="0" cellpadding="0" border="0">
        <tbody>
            <tr>
                <td style="height: 65px" colspan="2">
                    Asignar Alumnos a Curso</td>
                <td style="width: 600px; height: 65px">
                </td>
            </tr>
            <tr>
                <td style="width: 611px; height: 65px">
                    Curso<uc2:CboGeneric ID="cboCurso" runat="server" OnLoad="cboCurso_Load" tabla="proc_CursoDisponibles"
                        TipoOrigen="Procedure" NameId="IdCurso" NameDescript="CursoDescrip"></uc2:CboGeneric>
                </td>
                <td style="width: 600px; height: 65px">
                    Alumnos sin asignar:<uc2:CboGeneric ID="CboAlumnos" runat="server" TipoOrigen="Procedure"
                        NameDescript="Alumno" NameId="IdAlumno" SourceData="Proc_GetAlumnosSinAsignar"></uc2:CboGeneric>
                </td>
                <td style="width: 600px; height: 65px">
                    &nbsp;<asp:Button ID="cmdOk" OnClick="cmdOk_Click" runat="server" CssClass="input-button"
                        Text="Agregar"></asp:Button></td>
            </tr>
            <tr>
                <td style="height: 144px" colspan="2">
                   <asp:GridView ID="GridView1" 
                   runat="server" 
                   AutoGenerateColumns="False"
        EmptyDataText="No hay registros de datos para mostrar."
        OnRowDeleting="GridView1_RowDeleting" 
        DataKeyNames="IdAlumnoCurso"
        >
        <Columns>
            <asp:BoundField DataField="idAlumnoCurso" HeaderText="idAlumnoCurso" ReadOnly="True" SortExpression="idAlumnoCurso" Visible="false" />
            <asp:BoundField DataField="alumno" HeaderText="Alumno" />
            
            
            <asp:TemplateField>
                <ItemTemplate>
                    <div id="noprint">
                        <asp:ImageButton ID="ImageButton2" runat="server" CausesValidation="False" CommandName="Delete"
                            ImageUrl="~/Images/delete.gif" Text="Delete" />
                    </div>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView></td>
                <td style="height: 144px" colspan="1">
                </td>
            </tr>
        </tbody>
    </table>
</asp:Content>
